import { request } from '@/utils/request'

/**
 * @dynamic 动态查询
 * @return {HttpResponse} result
 */
const dynamic = (params: any) => {
    return request('https://sever.sooi.top:8888/sooi/article', params, 'post')
}
const show = (params: any) => {             //分页查询
    return request('https://sever.sooi.top:8888/sooi/article/show', params, 'post')
}
const carousel = (params: any) => {             //分页查询 //倒序查询 最新数据
    return request('https://sever.sooi.top:8888/sooi/article/carousel', params, 'post')
}
const single = (params: any) => {
    return request('https://sever.sooi.top:8888/sooi/article/single', params, 'post')
}
const archives = (params: any) => {
    return request('https://sever.sooi.top:8888/sooi/article/archives', params, 'post')
}

export default {
    dynamic,
    show,
    carousel,
    single,
    archives,
}